home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 17 June 1997
- //
- // Author: gf
- //
- // Description:
- // This implements the Selection Polygon Marking Menu.
- //
-
-
-
- global proc doSelectMaskMMenu()
- {
-
- menuItem -rp "N" -l "NURBS Mask" -ecr false
- -c "setSelectMode nurbsModeling NURBS";
- menuItem -rp "NE" -l "Hierarchy" -ecr false
- -c "setSelectMode hierarchy Hierarchy";
- menuItem -rp "E" -l "Animation Mask" -ecr false
- -c "setSelectMode animation Animation";
- menuItem -rp "SE" -l "Deformations Mask" -ecr false
- -c "setSelectMode deformations Deformations";
- menuItem -rp "S" -l "Dynamics Mask" -ecr false
- -c "setSelectMode dynamics Dynamics";
- menuItem -rp "SW" -l "Polygons Mask" -ecr false
- -c "setSelectMode polyModeling Polygons";
- menuItem -rp "W" -l "Rendering Mask" -ecr false
- -c "setSelectMode rendering Rendering";
-
- // If in component mode then switch to Object, any
- // other mode (object, hierarchy, preset) go to
- // component.
- menuItem -rp "NW" -l "Object/Components" -ecr false
- -c "if ( `selectMode -q -component` ) { setSelectMode objects Objects; } \
- else { setSelectMode components Components; }";
-
- setParent -m ..;
- }
-
-
- global proc buildSelectMaskMM()
- //
- // Creates a marking menu that allows the user
- // to select Selection Maks. It reuses
- // the name tempMM for the name of the menu, to
- // ensure that there's only one of these at
- // any one time.
- {
- if( `popupMenu -exists tempMM` )
- {
- deleteUI tempMM;
- }
-
- global string $gSelect;
- setToolTo $gSelect;
-
- popupMenu -mm 1 -b 1 -aob 1 -p viewPanes -pmc "doSelectMaskMMenu" tempMM;
-
- }
-
-
-
-
-
-